﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 工业设备监控系统.DAL;
using 工业设备监控系统.Models;

namespace 工业设备监控系统.BLL
{
    public class GetADRValuesBLL
    {
        private RegisterDAL registerDAL = new RegisterDAL();

        private DeviceDAL DeviceDAL = new DeviceDAL();

        private AlarmDAL AlarmDAL = new AlarmDAL();

        public List<Register> GetAllRegisterData()
        {
            return registerDAL.GetAllRegisters();
        }

        public List<Alarm> GetAllAlarmData()
        {
            return AlarmDAL.GetAllAlarms();
        }

        public List<Device> GetAllDeviceData()
        {
            return DeviceDAL.GetAllDevices();
        }
    }
}